package com.zeedev.flyingsaucer.modules.StoreModule.impl;

import com.google.inject.Inject;
import com.google.inject.internal.Nullable;
import com.google.inject.name.Named;

import java.io.Serializable;
import java.util.HashMap;

public class StoresPreferencesModel implements Serializable {


    //Store Name, Store Id
    private HashMap<String, String> storeMap = null;

    @Inject
    public StoresPreferencesModel() {
        storeMap = new HashMap<String, String>(15);
    }


    public HashMap<String, String> getNameIdStoreMap() {
        return storeMap;
    }


    @Inject
    public void setStoreMap(@Nullable @Named("storeMap") HashMap<String, String> storeMap) {
        if (storeMap == null) {

        } else {
            this.storeMap = storeMap;
        }
    }

    public Boolean isEmpty() {
        return storeMap.isEmpty();
    }

}
